<div class="path">
    <i class="iconfont icon-shouye1"></i>
    <a href="javascript:void(0);">开始</a> / 
    <a href="javascript:void(0);">库存管理</a>
</div>
<div class="m10 w600">
<form id="form" action="{url('house/up')}">
<input type="hidden" name="id" value="{$id}"/>   
<table class="table table-border">
    <tr>
      <th>产品名称:</th>
      <td>
        {$info['product']}
      </td>
    </tr>
    <tr>
      <th>物料代码:</th>
      <td>
        {$info['code']}
      </td>
    </tr>
    <tr>
      <th>物料名称:</th>
      <td>
         {$info['name']}
      </td>
    </tr>
    <tr>
      <th>规格型号:</th>
      <td>
         {$info['parameter']}
      </td>
    </tr>
    <tr>
      <th>库位:</th>
      <td>
<select class="select" name="place_id" datatype="*" id="place_id">
    <option value="" selected="selected"></option>
{loop $place_lists $vo} 
    <option value="{$vo['id']}" {if $info['place_id'] ==$vo['id']} selected="selected"{/if}>{$vo['name']}</option>
{/loop}
</select>
      </td>
    </tr>
    <tr>
      <th>剩余库存:</th>
      <td>
         <span class="fn-f14 red fn-fb" id="amount">{$info['amount']}</span>
      </td>
    </tr>
    <tr>
      <th>IMEI号:</th>
      <td>
        <input class="input w200" datatype="s" type="text" name="imei" value="" />  
      </td>
    </tr> 
</table>
<div class="btn fn-tac">
    <input type="submit" value="确定保存" class="button button-blue" />
    <input type="reset" value="重置" class="button button-yellow" />
</div>
</form>
</div>
<script type="text/javascript">
Do('base','form','date','dialog',function(){ 
    $('#form').forms();
    $('#place_id').change(function(){
        var url = '{url('warehouse/house/change')}';
        var uid = {$id};
        var place_id = $(this).val();
        $.post(url,{'uid':uid,'place_id':place_id},function(data){
          $("#amount").html(data);
        },'html');
    })
})
</script>